<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common.jsp"%>
<!DOCTYPE html>
<html lang="en">
  <head>
	<title>登录</title>
	<link href="${appName}/resource/css/login-all.css" rel="stylesheet">
	<script type="text/javascript">
		if (window.top !== window.self) {
			window.top.location = window.location;
		}
		/* $(function(){
			closeWebPage();
		});
		function closeWebPage(){
			var userAgent = navigator.userAgent;
			if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) {
			   window.location.href="about:blank";
			} else {
			   window.opener = null;
			   window.open("", "_self");
			   window.close();
			}
		} */
		if('${message}'){
			setTimeout("$('#message').html('')",5000);
		}
	</script>
  </head>
 <body class="login-back">
	<div>
	<div>
		<div class="login-body">
			<div align="center"><img src="${appName}/resource/images/login-logo2.png" width="400"></div>
			<div class="login-mid">
                <div class="reg-title" align="center">
                </div>
                <form id="form-signin" action="${frmPrefix}login" method="post" autocomplete="off">
                <div id="message" style="color:red;">${message }</div>
                <div>
                    <div style="font-size: 16px;">用户名</div>
                    <div><input name="username"  type="text"  class="reg-input" placeholder="账号"></div>
                </div>
                <div style="margin-top:20px;">
                    <div style="font-size: 16px;">密码</div>
                    <div><input name="password"  type="password" class="reg-input" placeholder="密码"></div>
                </div>
                <div style="margin-top:20px;">
                    <div><img alt="验证码" id="captchaImg" src="${prc}/captcha" onclick="reflashCaptcha();" class="login-yanzheng"><input name="captcha"  type="text" class="reg-input yanzhengma" onFocus="this.value=''" placeholder="验证码"></div>
                </div>
                <div style="margin-top:26px;"><!-- 
                    <div><a class="login-btn" href="#" onclick="javascript:this.submit();">立即登录</a></div> -->
                    <div><button class="login-btn">立即登录</button></div>
                </div>
                </form>
            </div>
        </div>
		 <div class="copyright">
            <p class="tag-line">
                Copyright©2017-2027 Chinaunicom. All Rights Reserved. 中国联通 版权所有
            </p>
	    </div><!--#login-box end-->
	</div>
	</div>
  </body>
</html>
<script>
	function reflashCaptcha(){
		$('#captchaImg').attr('src','${prc}/captcha?d='+new Date().getTime());
	}
</script>

